#ifndef __MINIFONTWND_H__
#define __MINIFONTWND_H__

#include "ui/winview.h"
#include "ui/image.h"
#include "ui/text.h"
#include "uicontrol/button.h"

namespace MiniUI
{

class MiniFontWnd
{
public:
    MiniFontWnd();
    ~MiniFontWnd();

private:
    void OnBtnCloseClick(const UIObject* sender, const Type::MiniPoint& pt, MouseButton button, uint keyState);
    void OnBtnNothingClick(const UIObject* sender, const Type::MiniPoint& pt, MouseButton button, uint keyState);
    void OnBtnClearTypeClick(const UIObject* sender, const Type::MiniPoint& pt, MouseButton button, uint keyState);
    void OnBtnClearType2Click(const UIObject* sender, const Type::MiniPoint& pt, MouseButton button, uint keyState);
    void OnBtnAntialiasClick(const UIObject* sender, const Type::MiniPoint& pt, MouseButton button, uint keyState);
private:
    void GridShow(int width, int height, unsigned int* src);
private:
    WinView* m_pWinView;
    Image* m_pImgNothing;
    Image* m_pImgClearType;
    Image* m_pImgClearType2;
    Image* m_pImgAntialias;
    Image* m_pImgGrid;
    Bitmap* m_pGridBitmap;
};

}

#endif